package com.wsoft.config;

import com.wsoft.system.service.ISysResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Author Zhang gukai
 * @Date 2024/11/22 13:46
 */
@Component
public class ResourceInitBean implements CommandLineRunner {
    @Autowired
    private ISysResourceService resourceService;


    @Override
    public void run(String... args) throws Exception {
        resourceService.initAllResource();
    }
}
